package cn.laike.modules.dev.dao;

import cn.laike.modules.dev.entity.BreakfastCouponEntity;

import java.util.Date;
import java.util.List;
import java.util.Map;

import org.springframework.data.repository.query.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;

/**
 * 早餐券记录
 * 
 * @author ziye
 * @email 524748907@qq.com
 * @date 2019-03-02 11:23:33
 */
public interface BreakfastCouponDao extends BaseMapper<BreakfastCouponEntity> {
	
	List<Map> queryMyCouponList(@Param("openid") String openid, @Param("pageNo") Integer pageNo, @Param("pageSize") Integer pageSize);
	
	List<Map> queryTodayCouponList(@Param("openid") String openid);
	
	int updateCouponList(@Param("today") Date today);
	
	List<Double> statTotalMoney(@Param("uid") Long uid,@Param("hotelId") Integer hotelId,@Param("startTime") String startTime,@Param("endTime") String endTime);
}
